/**
 * Created by XingHuo on 15/4/26.
 */

function isServerNode(nodeid){
    if(nodeid.indexOf('db') < 0){
        return true;
    }
    return false;
}
function isDbNode(nodeid){

    if(nodeid.indexOf('collection') < 0 && nodeid.indexOf('db') > -1){
        return true;
    }
    return false;

}
function isCollection(nodeid){


    if(nodeid.indexOf('collection') > -1){
        return true;
    }
    return false;
}